import request from '@/utils/request';

export const uploadClockIn = (data) => {
	return request({
		url: '/upload/detail',
		method: 'post',
		data,
	});
};

export const againClockIn = (data) => {
	return request({
		url: '/upload/again_upload',
		method: 'post',
		data,
	});
};

export const againUpload = (data) => {
	return request({
		url: '/upload/again_upload',
		method: 'post',
		data,
	});
};

export const uploadDateStatus = (data) => {
	return request({
		url: '/upload/status',
		method: 'post',
		data,
	});
};

export const getClockInDesc = (data) => {
	return request({
		url: '/upload/user_upload_record_by_date',
		method: 'get',
		data,
	});
};

//判断用户今天是否还能打卡,规定是每天只允许打卡一次
export const todayUploadInfo = (data) => {
	return request({
		url: '/upload/today_upload_info',
		method: 'get',
		data,
	});
}